package dk.dashboardFP.dfpLogger.logReceivers {

	/**
	 * @author jk
	 */
	public class MonsterDebuggerReceiver implements ILogReceiver {
		
		private var _a_uintLevelColors : Array=[0x111111, 0x0F66E8, 0xF7DD00, 0xCD2929];

		public function log(sMessage : String, oObject : Object = null, intLevel:int=0, oExtraReceiversParms : Object = null) : void {
			 if (oExtraReceiversParms) {

			 	//::
			 	// check values 
			 	if (!oExtraReceiversParms.functions) {
			 		oExtraReceiversParms.functions=false;
			 	}
			 	if (!oExtraReceiversParms.depth) {
					oExtraReceiversParms.depth=4;
				}
			 	MonsterDebugger.trace(sMessage, oObject, _a_uintLevelColors[intLevel], oExtraReceiversParms.functions, oExtraReceiversParms.depth);

			 } else {
			 	MonsterDebugger.trace(sMessage, oObject, _a_uintLevelColors[intLevel]);
			}
		}
	}
}
